package net.hn.hnms.biz.activiti;

import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

/**
 * 生产管控-工作流模块服务
 *
 * @author wanglong
 */
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "net.hn.hnms")
@ComponentScan(basePackages = {"net.hn.hnms"})
@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
public class ActivitiApplication {

    @PostConstruct
    void init() {
        TimeZone.setDefault(TimeZone.getTimeZone("GMT+8"));
    }

    public static void main(String[] args) {
        SpringApplication.run(ActivitiApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  生产管控-工作流模块服务 启动成功   ლ(´ڡ`ლ)ﾞ  ");
    }

}
